//
//  YLMultipleResultView.h
//  YLScaner
//
//  Created by Admin on 2025/9/28.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
/// 状态栏高度
static inline CGFloat getStatusBarHeight(void) {
    
    if (@available(iOS 13.0, *)) {
        
        // 1. 获取当前活跃的窗口场景
        UIStatusBarManager *statusBarManager = UIApplication.sharedApplication.keyWindow.windowScene.statusBarManager;
        return statusBarManager.statusBarFrame.size.height;
    }else{
        
        return UIApplication.sharedApplication.statusBarFrame.size.height;
    }
}
@interface YLMultipleResultView : UIView

// 更新多结果显示
- (void)updateMultipleResult:(NSArray <NSValue *>*)results
              resultCallback:(void(^)(NSUInteger))resultCallback
               closeCallback:(void(^)(void))closeCallback;


@end

NS_ASSUME_NONNULL_END
